import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/flwworkflowmessages/` + url, ...arg)

/**
 * 待办Api接口管理器
 *
 * @author 张天亮
 * @date  2023/08/16 08:48
 **/
export default {
	// 获取待办分页
	flwWorkflowMessagesPage(data) {
		return request('page', data, 'get')
	},
	// 获取待办列表
	flwWorkflowMessagesList(data) {
		return request('list', data, 'get')
	},
	// 提交待办表单 edit为true时为编辑，默认为新增
	flwWorkflowMessagesSubmitForm(data, edit = false) {
		return request(edit ? 'add' : 'edit', data)
	},
	// 删除待办
	flwWorkflowMessagesDelete(data) {
		return request('delete', data)
	},
	// 获取待办详情
	flwWorkflowMessagesDetail(data) {
		return request('detail', data, 'get')
	}
}
